package com.kclm.se.generic;

/***
 * 泛型类
 * @author yejf
 * @since JDK8.0
 * @CreateDate 2020年8月19日 下午3:48:50 
 * @description 此类用来描述了xxxxx
 *
 * @param <K>
 * @param <V>
 */
public class MyEntry<K ,V> {

	private K k;
	
	private V v;

	/**
	 * @param k
	 * @param v
	 */
	public MyEntry(K k, V v) {
		this.k = k;
		this.v = v;
	}

	/**
	 * @return the k
	 */
	public K getK() {
		return k;
	}

	/**
	 * @param k the k to set
	 */
	public void setK(K k) {
		this.k = k;
	}

	/**
	 * @return the v
	 */
	public V getV() {
		return v;
	}

	/**
	 * @param v the v to set
	 */
	public void setV(V v) {
		this.v = v;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("MyEntry [k=").append(k).append(", v=").append(v).append("]");
		return builder.toString();
	}
	
}
